Skip to main content

Full text of "Arduino"

See other formats

RGB Liquid Crystal Display Tutorial 


Make Projects 

build, hack, tweak, share, discover, J 

RGB Liquid Crystal Display 


Written By: Jaden Gani 


Arduino IDEM) 

Computer (1) 

Soldering iron and solder (1) 


Arduino (1) 
Jumper wires (1) 
RGB 1 6*2 display (1) 


This is something that almost every maker that is interested in easy electronics should know 
how to do. It is great for decorating or just experimenting for starters. 

I am doing this tutorial because I had bought an RGB display from the Maker Shed and it 
was hard to track down the instructions. First I will teach you how to connect it to the 
Arduino and then I will show you the code required. 

This isn't my very own tutorial; I am just making the information easily accessible for 

© Make Projects 

Page 1 of 6 

RGB Liquid Crystal Display Tutorial 

+J^£i b3E«^3"#I 


^^^^^^ ^hdH^pi^^3h^P 


V kt h2 



We will start off by gathering all of the parts together. Then open the package. Inside, you 
will find the display, contrast pot, and header pins. Solder the header pins on the same 
side that I did. 

Now we will prepare everything to start connecting to the Arduino. Insert the display into 
the breadboard with the pot next to it. Then connect 5V and GND to the breadboard rails as 
I have done. Good. 

© Make Projects 

Page 2 of 6 

RGB Liquid Crystal Display Tutorial 

Step 3 

Now we will hook up the contrast pot. Connect one side of the pot to GND and the other to 
5V. Then hook the middle of the pot to pin 3 on the display. 

Step 4 

■ * ■ « • M ♦... « 

* ■ * * "!'••• ••••* ■ 

u_ — m — — -*« 


• Connect pin 1 of the display to GND, pin 2 to 5V 5 and pin 5 to GND. 

© Make Projects 

Page 3 of 6 

RGB Liquid Crystal Display Tutorial 

Connect pin 15 to 5V and then connect either pin 16, 17, or 18 to GND depending on what 
color you want for your backlight. I picked pin 16 which will make it light up red. 

Now we will start connecting the Arduino to the display. Connect pin 4 of the display to pin 
7 on the Arduino; pin 6 to pin 8; pin 11 to 9; 12 to 10; 13 to 11; and pin 14 on the display to 
pin 12 on the Arduino. 

© Make Projects 

Page 4 of 6 

RGB Liquid Crystal Display Tutorial 

The setup should look something like this. 


■»«i«l iT H .Ml 111. a , 


• Now you have connected the display to the Arduino. For the code, navigate in the Arduino 
environment to Examples^ Liquid crystal^Hello world. Change the line of code that 

says: LiquidCrystal lcd(12, 11, 5, 4, 3, 2 ) ; to LiquidCrystal lcd(7, 
8, 9, 10, 11, 12);. 

• A wiring diagram is included here. 

© Make Projects 

Page 5 of 6 

RGB Liquid Crystal Display Tutorial 

If you got everything right, this is how it should look. 

You have now just set up a liquid crystal display! 

This document was last generated on 201 3-02-20 1 0:45:31 PM. 

© Make Projects 

Page 6 of 6